<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>玻璃态卡片效果</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        padding: 20px;
      }

      .card-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        max-width: 1200px;
        width: 100%;
      }

      .glass-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 30px;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        color: white;
      }

      .glass-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
        background: rgba(255, 255, 255, 0.15);
      }

      .glass-card h2 {
        font-size: 24px;
        margin-bottom: 15px;
        font-weight: 600;
      }

      .glass-card p {
        font-size: 14px;
        line-height: 1.6;
        opacity: 0.9;
      }

      .icon {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-bottom: 20px;
      }
    </style>
  </head>
  <body>
    <div class="card-container">
      <div class="glass-card">
        <div class="icon">🎨</div>
        <h2>设计</h2>
        <p>精美的玻璃态设计，带来现代感和深度感，让界面更加优雅。</p>
      </div>
      <div class="glass-card">
        <div class="icon">⚡</div>
        <h2>性能</h2>
        <p>使用CSS backdrop-filter实现，性能优异，兼容现代浏览器。</p>
      </div>
      <div class="glass-card">
        <div class="icon">✨</div>
        <h2>效果</h2>
        <p>毛玻璃效果让内容层次分明，提升用户体验和视觉吸引力。</p>
      </div>
    </div>
  </body>
</html>

